From 6bce9b20bc5aa212fdceeeed51fbec6f237ee3dd Mon Sep 17 00:00:00 2001 From: Anton Gladky Date: Fri, 17 Sep 2021 22:02:38 +0200 Subject: [PATCH] Compile with MPI --- debian/patches/98_fix_mpi4py.py | 11 +++++++++++ debian/patches/series | 2 +- debian/python3-vtk9.install | 1 + debian/rules | 8 +++++++- 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 debian/patches/98_fix_mpi4py.py diff --git a/debian/patches/98_fix_mpi4py.py b/debian/patches/98_fix_mpi4py.py new file mode 100644 index 000000000..fefb4211d --- /dev/null +++ b/debian/patches/98_fix_mpi4py.py @@ -0,0 +1,11 @@ +Description: Fix mpi4py search +Author: Anton Gladky +Last-Update: 2021-09-17 + +--- vtk9-9.0.3+dfsg1.orig/Parallel/MPI4Py/vtk.module ++++ vtk9-9.0.3+dfsg1/Parallel/MPI4Py/vtk.module +@@ -12,4 +12,3 @@ DEPENDS + PRIVATE_DEPENDS + VTK::ParallelMPI + VTK::mpi +- VTK::mpi4py diff --git a/debian/patches/series b/debian/patches/series index 9479c5a48..1d3773ebe 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -9,6 +9,6 @@ 81_allow_gles_platforms.patch 82_allow_gles_platforms.patch 83_allow_gles_platforms.patch -90_fix_freetype_compilation.patch 95_java_mach-arch_fix.patch 97_reproducible_builds.patch +98_fix_mpi4py.py diff --git a/debian/python3-vtk9.install b/debian/python3-vtk9.install index 6f726f373..5e635d887 100644 --- a/debian/python3-vtk9.install +++ b/debian/python3-vtk9.install @@ -1,4 +1,5 @@ usr/lib/python3 +usr/bin/pvtkpython usr/bin/vtkpython-9.0 usr/bin/vtkWrapPython-9.0 usr/bin/vtkWrapPythonInit-9.0 diff --git a/debian/rules b/debian/rules index bd19bb4ee..e28c06c6a 100755 --- a/debian/rules +++ b/debian/rules @@ -33,7 +33,10 @@ extra_flags += \ -DVTK_GROUP_ENABLE_Qt:STRING="YES" \ -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL:STRING="NO" \ -DVTK_GROUP_ENABLE_Rendering:STRING="YES" \ + -DVTK_GROUP_ENABLE_StandAlone:STRING="YES" \ -DVTK_GROUP_ENABLE_Views:STRING="YES" \ + -DVTK_GROUP_ENABLE_MPI:STRING="YES" \ + -DVTK_GROUP_ENABLE_Imaging:STRING="YES" \ -DVTK_MODULE_ENABLE_VTK_RenderingQt:STRING="YES" \ -DVTK_MODULE_ENABLE_VTK_RenderingTk:STRING="YES" \ -DVTK_MODULE_ENABLE_VTK_utf8:STRING="YES" \ @@ -65,7 +68,10 @@ extra_flags += \ -DVTK_USE_TK=ON \ -DVTK_WRAP_PYTHON=ON \ -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2=YES \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DVTK_MODULE_ENABLE_VTK_ParallelMPI:STRING="YES" \ + -DVTK_USE_MPI=ON \ + override_dh_auto_configure: dh_auto_configure -- $(extra_flags) -- 2.30.2